<script>
	export default {
		globalData: {
			
		},
		onLaunch: function() {
			// token标志来判断
			let token = uni.getStorageSync("token");
			if (token) {
				this.globalData.token = token;
				let userId = uni.getStorageSync("userId");
				//存在则关闭启动页进入首页
			} else {
				//不存在则跳转至登录页
				console.log('不存在则跳转至登录页');
				uni.switchTab({
					url: "/pages/modules/home/index",
					success: () => {},
				});
			}
		},
		onShow: function() {},
		onHide: function() {},
	};
</script>

<style lang="scss">
	* {
		letter-spacing: 1.3;
	}
</style>